
using UnityEngine;
using UnityEngine.SceneManagement;

public class QuitPanel : BasePanel<QuitPanel>
{
    public CustomGUIButton btkClose;
    public CustomGUIButton btkYes;
    public CustomGUIButton btkNo;
    // Start is called before the first frame update
    void Start()
    {
        btkClose.clickEvent += () =>
        {
            Time.timeScale = 1;//恢复时间计时
            HideMe();
        };
        btkNo.clickEvent += () =>
        {
            Time.timeScale = 1;//恢复时间计时
            HideMe();
        };
        btkYes.clickEvent += () =>
        {
            SceneManager.LoadScene("BeginScene");
        };
        HideMe();
    }

    // Update is called once per frame
    void Update()
    {

    }
}
